package com.gec.anan.rules.client;

import com.gec.anan.common.result.Result;
import com.gec.anan.model.form.rules.RewardRuleRequestForm;
import com.gec.anan.model.vo.rules.RewardRuleResponseVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-rules",path = "/rules/reward")
public interface RewardRuleFeignClient {

    //计算系统奖励
    @PostMapping("/calculateOrderRewardFee")
    public Result<RewardRuleResponseVo> calculateOrderRewardFee(@RequestBody RewardRuleRequestForm rewardRuleRequestForm);

}